/*******************************************************************************
 * Copyright (c) 2010, 2017 西安秦晔信息科技有限公司
 * Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 *******************************************************************************/
package com.qinyeit.serviceapp.service.system;

import com.qinyeit.serviceapp.entity.system.SystemLog;
import com.qinyetech.springstage.core.service.IBaseService;
import eu.bitwalker.useragentutils.UserAgent;

/**
 * <p>InterfaceName: com.qinyetech.webapp.service.system.SystemLogService
 * <p>Function: 系统日志
 * <p>date: 2018-03-14 19:39
 *
 * @author wuqing
 * @version 1.0
 * @since JDK 1.8
 */
public interface SystemLogService extends IBaseService<SystemLog, Long> {
  public void save(UserAgent userAgent, String ip,
                   String requestUri,
                   Long time,
                   String operation,
                   String currentAccount,
                   String methodName);

   /**
    * 删除 offsetMonth之前的日志
    * @param offsetMonth
    */
   public void deleteLogs(int offsetMonth);
}
